﻿using Max.PH4.Shoppgin.Admin.DataAccess;
using Max.PH4.Shoppgin.Admin.Domain;
using Max.PH4.Shoppgin.Admin.IRespository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH4.Shoppgin.Admin.Respository
{
    public class SPURespository : ISPURespository
    {
        MyDbContext _context;

        public SPURespository(MyDbContext context)
        {
            _context = context;
        }

        public int Delete(SPUEntity entity)
        {
            throw new NotImplementedException();
        }

        public int Delete(object id)
        {
            throw new NotImplementedException();
        }

        public void Insert(SPUEntity entity)
        {
            _context.SPUs.Add(entity);
            //return _context.SaveChanges();
        }

        public IQueryable<SPUEntity> Query()
        {
            throw new NotImplementedException();
        }

        public int Update(SPUEntity entity)
        {
            throw new NotImplementedException();
        }
    }
}
